package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Banks extends Model<Banks> {

    public static final String ID = "id";
    public static final String SUB_BRANCH_NAME = "sub_branch_name";
    public static final String SUB_BRANCH_ID = "sub_branch_id";
    public static final String PROVINCE_ID = "province_id";
    public static final String PROVINCE = "province";
    public static final String CITY_ID = "city_id";
    public static final String CITY = "city";
    public static final String BANK_NAME = "bank_name";
    public static final String BANK_ID = "bank_id";
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String subBranchName;
    private String subBranchId;
    private Integer provinceId;
    private String province;
    private Integer cityId;
    private String city;
    private String bankName;
    private Integer bankId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
